* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}
.main {
    width: 100vw;
    height: 100vh;
    padding: 10px;
}
.show {
    display: flex;
}
.map-grids {
   width: 190px; 
}
.list {
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 0 4px 2px #ccc;
    margin-bottom: 10px;
    /* justify-content: space-between; */
}
.info {
    padding: 10px;
    box-shadow: 0 0 4px 2px #ccc;
}
.grid-item {
    margin: 2px 4px 0 0;
}
.grid-item.active {    
    /* transform: translateY(-10%); */
    box-shadow: 0 2px 4px 2px rgb(251, 10, 91);
    animation: hover 1000ms infinite;
    /* animation-fill-mode: backwards; */
    animation-direction: alternate-reverse;
}
@keyframes hover{
    0%{
        transform: translateY(0%);
    }
    100%{
        transform: translateY(-10%);
    }
}
.draw-rect {
    flex: 1;
    margin: 0 10px;
    box-shadow: 0 0 4px 2px #ccc;
    overflow: auto;
    max-height: 700px;
}
.unit-editor {
    width: 240px;
    box-shadow: 0 0 4px 2px #ccc;
}
.operations {
    box-shadow: 0 0 4px 2px #ccc;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}
.operations > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.operations input {
    width: 40px;
    height: 30px;
    border: 1px solid #00e;
    outline: 0 none;
    border-radius: 4px;
    margin: 0 8px;
}
.operations button {
    width: 80px;
    height: 30px;
    background-color: #09f;
    border: 0 none;
    border-radius: 4px;
    color: #fff;
}
.operations button:active {
    background-color: rgb(4, 120, 197);
}
.f-item {
    padding-right: 10px;
}
.ter-list {
    position: relative;
}
.grid-options {
    position: absolute;
    left: -70px;
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
    width: 152px;
    box-shadow: 0 0 4px 2px #ccc;
}